﻿namespace Codeblack.TfsScrumboard.Repositories
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Codeblack.TfsScrumboard.Interfaces;

    public class ScrumboardSettings : IScrumboardSettings
    {
        public ScrumboardSettings()
        {
            this.Sprints = new SprintsSettings()
            {
                SprintType = "Sprint",

                IterationPathFieldName = "System.IterationPath",
                StartDateFieldName = "Microsoft.VSTS.Scheduling.StartDate",
                FinishDateFieldName = "Microsoft.VSTS.Scheduling.FinishDate",
            };
            this.Workitems = new WorkitemsSettings()
            {
                TypeFieldName = "System.WorkItemType",
                IDFieldName = "System.Id",
                TitleFieldName = "System.Title",
                //StoryPointsFieldName = "Quintor.VSTS.StoryPoints",
                StoryPointsFieldName = "Microsoft.VSTS.Scheduling.Effort",
                IterationPathFieldName = "System.IterationPath",
                StatusFieldName = "System.State",
                AssignedToFieldName = "System.AssignedTo",
                //PriorityFieldName = "Microsoft.VSTS.Common.Priority",
                PriorityFieldName = "Microsoft.VSTS.Common.BacklogPriority",
                TeamProjectFieldName = "System.TeamProject",

                //WorkItemTypes = "'User Story', 'Task', 'Bug'"
                WorkItemTypes = "'Product Backlog Item', 'Task', 'Bug'"
            };
        }

        public SprintsSettings Sprints { get; set; }
        public WorkitemsSettings Workitems { get; set; }
    }
}
